import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import api from './utils/axios'

const app = createApp(App)
const pinia = createPinia()

// 配置Element Plus使用浅色模式
app.use(ElementPlus, {
  zIndex: 3000,
  size: 'default',
  theme: 'light'
})

app.use(pinia)
app.use(router)

// 将axios实例挂载到全局
app.config.globalProperties.$http = api

app.mount('#app')
